import request from '@/utils/request'

// 用户列表
export function getSysuserList(data) {
  return request({
    url: `/sysUser/list`,
    method: 'post',
    data
  })
}

// 修改用户
export function putSysuser(data) {
  return request({
    url: `/sysUser`,
    method: 'put',
    data
  })
}

// 新增用户
export function addSysuser(data) {
  return request({
    url: `/sysUser`,
    method: 'post',
    data
  })
}

// 删除用户
export function delSysuser(data) {
  return request({
    url: `/sysUser/${data.id}`,
    method: 'delete'
  })
}

// 获取详情
export function getSysuser(data) {
  return request({
    url: `/sysUser/${data.id}`,
    method: 'get'
  })
}
